/* Container for displaying the uploaded files in grid */
.uploaded-media-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Create a responsive grid */
    gap: 15px; /* Space between grid items */
    padding: 20px 0;
}

/* Style for each media card in the grid */
.uploaded-media-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden; /* Ensures the content doesn't overflow the card */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

/* Add hover effect on the cards */
.uploaded-media-card:hover {
    transform: scale(1.05);
}

/* Image and video inside the card */
.uploaded-media-card img,
.uploaded-media-card video {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #ddd; /* Border between image/video and description */
}

/* Description text */
.uploaded-media-card .media-description {
    padding: 15px;
    font-size: 1em;
    color: #333;
}

/* Update/Delete buttons */
.uploaded-media-card .btn-container {
    padding: 10px;
    text-align: center;
}

/* Styling for the buttons */
.uploaded-media-card .btn {
    margin: 5px;
}
